package com.ytjj.qmyx.mall.controller;

import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.mall.service.OtherService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 乱七八糟控制器
 *
 *
 *  *
 **/
@RestController
@RequestMapping("/other")
public class OtherController {

    @Resource
    private OtherService otherService;

    @GetMapping("/getOtherList")
    public CommonResult getOtherList() {
        return CommonResult.success(otherService.getOtherList());
    }
}
